#include "SGNodePointLight.h"

//constructor
SGNodePointLight::SGNodePointLight(CPointLight* light)
: m_light(light), m_position(0, CVector3f())
{}

//desctructor
SGNodePointLight::~SGNodePointLight()
{}

//update
void SGNodePointLight::doUpdate()
{
	m_light->setPosition(m_position);
}

//dirty
void SGNodePointLight::dirty()
{
	m_position.onChange();
}